//
//  MapDesCollectionReusableHeaderView.m
//  LZMPro
//
//  Created by dllo on 15/11/7.
//  Copyright © 2015年 LZS. All rights reserved.
//

#import "MapDesCollectionReusableHeaderView.h"
#import "MapDesElementsModel.h"
@interface MapDesCollectionReusableHeaderView ()

@property (nonatomic, retain)UILabel *title;

@end

@implementation MapDesCollectionReusableHeaderView



-(void)setModel:(BaseModel *)model
{
    _model = model;
    
    MapDesElementsModel *m = (MapDesElementsModel*)_model;
    
    self.title.text = m.title;
    
    
    
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews{
    
    UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(WIDTH * 0.05, 0, self.width * 0.3, self.height)];
    imageView.image = [UIImage imageNamed:@"trips_top_date_bg"];
    
    [self addSubview:imageView];
    
    
    self.title = [[UILabel alloc]initWithFrame:CGRectMake(self.width * 0.1, 0, self.width * 0.9, self.height)];
    self.title.font = [UIFont boldSystemFontOfSize:19];
    self.title.textColor = [UIColor colorWithRed:0/255.0 green:150/255.0 blue:255/255.0 alpha:1];
    
    [self addSubview:self.title];
    
}



@end
